package com.nine.shop.vo;

import com.nine.shop.model.Order;

import java.io.Serializable;
import java.util.Date;

/**
 * @author by Shawsw
 * @date 2019/8/28 8:56
 */
public class OrderVo implements Serializable {
    private Integer id;
    private Integer status;//0未付款 1已付款未发货 2已发货
    private Date createDate;
    //private String userName;
    private Integer goodsId;
    private Integer amount;
    private Double cost;
    private String address;

   public OrderVo(){ }
   public OrderVo(Order order,String address){
       this.id=order.getId();
       this.address=address;
       this.amount=order.getAmount();
       this.cost=order.getCost();
       this.createDate=order.getCreateDate();
       this.goodsId=order.getGoodsId();
       this.status=order.getStatus();

   }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public Integer getStatus() {
        return status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public Integer getAmount() {
        return amount;
    }

    public Double getCost() {
        return cost;
    }

    public String getAddress() {
        return address;
    }
}
